package shuzu;

import java.util.Scanner;
public class test4 {
    public static void main(String[] args) {
        Scanner sc =new Scanner(System.in);
        System.out.println("输入你的成绩：");
        int grade = sc.nextInt();
        if (grade >=0 && grade <=100) {
            if (grade >= 90 && grade <= 100) {
                System.out.println("优秀");
            } else if (grade >= 80 && grade <= 89) {
                System.out.println("良好");
            } else if (grade >= 60 && grade <= 79) {
                System.out.println("合格");
            } else {
                System.out.println("不合格");
            }
        }
        else {
            System.out.println("成绩不存在");
        }
    }
}
